public class Main {
    public static void main(String[] args) {
        MyArraylist myArraylist = new MyArraylist();
        myArraylist.add(1);
        myArraylist.add(2);
        myArraylist.add(3);
        myArraylist.add(4);
        myArraylist.add(5);
        myArraylist.display();
        System.out.println("===");
        myArraylist.add(2,55);
        myArraylist.display();
        System.out.println(myArraylist.contains(55));

        System.out.println(myArraylist.indexOf(55));

        System.out.println(myArraylist.get(2));

        myArraylist.set(3,66);
        myArraylist.display();

        myArraylist.remove(66);
        myArraylist.display();

        System.out.println(myArraylist.size());
        myArraylist.clear();
        myArraylist.display();
    }
}